// color4.h: interface for the color4 class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#pragma pack(push,4)
struct __declspec(dllexport) color4  
{
public:
	float m_color[4];
public:
	color4();
	color4(COLORREF color);
	color4(float r,float g,float b,float a=1.0f);
public:
	color4& Set(float*v4);
	color4& Set(float r,float g,float b);
	//
	float&operator[](int i);
	const float&operator[](int i)const;
	//
	BOOL operator !=(const color4 &color)const;
	//
	void invert_a();
	COLORREF GetRGB()const;
};
#pragma pack(pop)
